package jp.co.piratealliance.pirateAllianceWeb.web.action.agreement;

import java.util.List;

import jp.co.piratealliance.pirateAllianceWeb.common.base.BaseAction;
import jp.co.piratealliance.pirateAllianceWeb.dto.agreement.AgreementDto;
import jp.co.piratealliance.pirateAllianceWeb.service.agreement.AgreementService;

/**
 * copyright pirate alliance team 2014
 *
 * @author lunxing
 */

public class AgreementAction extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private AgreementService agreementService;

	private List<AgreementDto> agreementDtoList;
	
	private String app_name;
	
	public String getAgreementInfoList()
	{
		this.agreementDtoList = this.agreementService.getAgreementInfoList(this.app_name);
		return SUCCESS;
	}

	/**
	 * @return the app_name
	 */
	public String getApp_name() {
		return app_name;
	}

	/**
	 * @param app_name the app_name to set
	 */
	public void setApp_name(String app_name) {
		this.app_name = app_name;
	}

	/**
	 * @return the agreementService
	 */
	public AgreementService getAgreementService() {
		return agreementService;
	}

	/**
	 * @param agreementService the agreementService to set
	 */
	public void setAgreementService(AgreementService agreementService) {
		this.agreementService = agreementService;
	}

	/**
	 * @return the agreementDtoList
	 */
	public List<AgreementDto> getAgreementDtoList() {
		return agreementDtoList;
	}

	/**
	 * @param agreementDtoList the agreementDtoList to set
	 */
	public void setAgreementDtoList(List<AgreementDto> agreementDtoList) {
		this.agreementDtoList = agreementDtoList;
	}

	
}
